//  / -> component
import { createRouter, createWebHashHistory } from 'vue-router'
// 路由对象
// 
const router = createRouter({
    history: createWebHashHistory(),  //浏览器访问历史
    routes: [
        {
            path: '/',
            name: 'home',
            // 页面级别组件 views
            component: () => import ('../views/Home.vue')
        }
    ]
})

export default router